import QtQuick
import QtQuick.Controls
import QtQuick.Layouts

ApplicationWindow {
    id: myWindow
    width: 640
    height: 480
    visible: true

    Drawer {
        id: drawer
        width: 200
        height: myWindow.height
        margins: 10
        //closePolicy: Popup.CloseOnEscape

        //默认属性
        modal: true

        ColumnLayout {
            spacing: 10
            Button {
                text: "按钮1"
                Layout.preferredWidth: 150
                Layout.preferredHeight: 40
            }
            Button {
                text: "按钮2"
                Layout.preferredWidth: 150
                Layout.preferredHeight: 40
            }
            Button {
                text: "按钮3"
                Layout.preferredWidth: 150
                Layout.preferredHeight: 40
            }
        }
    }

    Button {
        text: "Center Button"
        width: 240
        height: 60
        font.pointSize: 20
        anchors.centerIn: parent
    }
}
